package com.clearance.mine_clearance.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("bet_info")
public class BetInfo {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户ID
    private String tgUserId;
    //金额;
    private BigDecimal amount;
    //红包ID
    private Integer redpacketId;
    //是否中雷 0是1否
    private Integer isRadar;
    private String firstName;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date time;

    private Integer darkLightning;
}
